package com.aaa.demo06;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Test0601 {
@Target({ElementType.METHOD,ElementType.TYPE,ElementType.PARAMETER,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
 @interface Your{

 }
       @Your
       class teach{
        @Your
        private int age;

         @Your
         public void show(@Your int age){
          System.out.println(age);
        }
}
}
